<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('report')} > ${i18n.getMessage('topStudents')}">
</@showTitle>

<div style="margin-top:10px;padding-bottom:10px;text-align:center">
	<form onsubmit="return false;">
		<b>${i18n.getMessage('month')}</b>: 
			<select name="month" style="width:55px">
				<#list 1..12 as month>
					<option value="${month}" <#if month?string('00')=now?string('MM')>selected</#if>>${month?string('00')}</option>
				</#list>
			</select>
		<b>${i18n.getMessage('year')}</b>:
			<select name="year" style="width:55px">
				<#list 2007..2020 as year>
					<option value="${year}" <#if year?string=now?string('yyyy')>selected</#if>>${year}</option>
				</#list>
		     </select>
		<input type="button" value="${i18n.getMessage('report')}" onclick="searchForm(this.form, 'offering/doTopStudentsReport.sgt')" style="width:100px" />
	</form>
</div>

<script>
	searchForm = function(form, action) {
		form.action = action;
		popupSubmitForm(form); 
	}
</script>